package org.jash.day2

/**
 * Created by Jash
 */
fun main() {
//    var option = option({ i, j -> i * j })
//    println(option)
    val c = count()
    println(c())
    println(c())
    println(c())
    println(c())
}
fun option(opt:(Int, Int) -> Int):Int {
    return opt(3, 4)
}
fun count():() -> Int {
    var i = 0
    return { i++ }
}